/*
 * Copyright (C) 2001-2005 Pleasant nightmare studio
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package org.pleasantnightmare.acake.dataclass;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Added to constrain members added to data classes.
 * Ideally, supports only bean property methods, but
 * that may show as a bit strict.
 * <ul>
 * <li>Check that class has rw property for every field - other fields shouldn't even exist in a class</li>
 * <li>Check that class has no method members, except from getters/setters/equals/hashcode/tostring</li>
 * <li>Check that class has implemented equals, hashcode and tostring</li>
 * <li>Check that class dependencies are either @Data themselves or primitive types</li>
 * <li>Check that class has a no-arg constructor</li>
 * <li>Check that class has a all-fields constructor</li>
 * </ul>
 *
 * @author deus
 * @version 1.0
 * @since Nov 16, 2009 7:48:26 AM
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Data {
}
